<template>
  <div>
    <div class="wrap user_set bgw">
      <div  class="nav">
        <div  :class="{navActive: navTab == 0}">
          个人资料
          <i></i>
        </div>
      </div>
        <div  v-show="navTab == 2" class="nav">
            <div >修改手机号</div>
        </div>
      <!-- 修改 个人信息  -->
      <div  class="content">
        <div class="user_num">
          <span>用户编号:</span>
          12354656
        </div>
        <div class="user_name">
          <span>昵称:</span>
          <input type="text" placeholder="用户昵称" />
        </div>
        <div class="user_img">
          <span>头像</span>
          <p>修改</p>
          <img src="@/assets/image/Furtherconsultation_Defaulthead@2x.png" alt />
        </div>
        <div class="user_birthday">
          <span>出生日期</span>
          <el-date-picker
            v-model="birthday"
            type="date"
            placeholder="选择日期"
            format="yyyy 年 MM 月 dd 日"
            value-format="yyyy-MM-dd"
          ></el-date-picker>
        </div>
        <div class="user_sex">
          <span>性别</span>
          <el-radio v-model="sex" label="1">男性</el-radio>
          <el-radio v-model="sex" label="2">女性</el-radio>
        </div>
        <button>保存</button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
    props:['navTab'],
  data() {
    return {
      birthday: "2019-01-01", // 出生日期
      sex: 0, //性别
      checking1: 1, //验证
      time: 60, //倒计时
      phone: "", //手机号
      phoneCode: "", //手机号验证码
      password1: "",//新密码
      password2: "",// 再次 输入 新密码
      password3:'',//登录密码
    };
  },
  updated() {
  }
};
</script>
<style lang="less" >
.user_set {
  .checking {
    input {
      width: 237px !important;
    }
    p {
        cursor: Default; 
      margin-left: 16px;
      display: inline-block;
      width: 160px;
      height: 46px;
      color: #808080;
      line-height: 46px;
      font-size: 16px;
      text-align: center;
      background: rgba(230, 230, 230, 1);
    }
  }
}
// 修改密码
.user_set_phone {
  span {
    width: 130px !important;
  }
  input {
    width: 380px;
    height: 46px;
    text-indent: 10px;
    border: 1px solid #e6e6e6 !important;
  }
}

// 个人资料
.user_set {
  padding-bottom: 40px;
  button {
    width: 130px;
    height: 46px;
    font-size: 18px;
  }
}
.user_set .user_sex {
  .el-radio__inner {
    width: 16px;
    height: 16px;
  }
}
.user_set .user_birthday {
  .el-input__inner {
    width: 220px;
    height: 46px;
    line-height: 46px;
    border: 1px solid #e6e6e6 !important;
    font-size: 16px;
  }
  .el-input__icon {
    line-height: 48px;
  }
}
.user_set .user_img {
  height: 186px !important;
  span {
    position: absolute;
    left: 0;
    top: 0;
  }
  img {
    margin-left: 90px;
    width: 186px;
    height: 186px;
  }
  p {
    position: absolute;
    left: 90px;
    width: 186px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    color: white;
  }
}
.user_set .user_name {
  input {
    width: 380px;
    height: 46px;
    text-indent: 10px;
    border: 1px solid #e6e6e6 !important;
  }
}
.user_set .content {
  padding-top: 46px;
  padding-left: 72px;
  color: #4d4d4d;
  font-size: 16px;
  > div {
    height: 46px;
    position: relative;
    margin-bottom: 36px;
  }
  > div > span {
    display: inline-block;
    width: 90px;
  }
}
.user_set .user_num {
  line-height: 46px;
}
.user_set .nav {
  height: 68px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 18px;
  padding-left: 20px;
  display: flex;
  > div {
    line-height: 68px;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    cursor: Pointer;
  }
}
.user_set .navActive {
  color: #4eeec8;

  i {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    border-bottom: 2px solid #4eeec8;
  }
}
.user_set {
  border: 1px solid #e6e6e6;
}
</style>